package com.sfjswl.fp.core.leaf.base;

import com.sfjswl.fp.common.enums.NodeRunStateEnum;
import com.sfjswl.fp.core.base.BaseLeaf;
import com.sfjswl.fp.core.context.RuleContext;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public abstract class BaseLeafNone extends BaseLeaf {

  @Override
  protected NodeRunStateEnum doLeaf(RuleContext ctx) {
    doNone(ctx);
    return NodeRunStateEnum.NONE;
  }

  protected abstract void doNone(RuleContext ctx);
}
